//
//  CocoButton.m
//  UI_02homeworkNO1
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CocoButton.h"

@implementation CocoButton


+(instancetype)buttonWithType:(UIButtonType)buttonType withFrame:(CGRect )frame withText:(NSString *)titleText
{
    CocoButton *button = [CocoButton buttonWithType:UIButtonTypeSystem];
    button.frame = frame;
//    button.titleLabel.text = titleText;  注意再说最后一次:   这个属性使用方法在这里是不适用的!!!!!!!!!!!!!!!!!🐷
    
    [button setTitle:titleText forState:UIControlStateNormal];
    [button setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    
    return button;
}





@end
